package com.levy.swrb.core.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Node {
    private String id;
    private Integer weight;
    private Integer current;

    public static Node create(String id, Integer weight) {
        return new Node(id, weight, 0);
    }
}
